import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      components: {
        default: () => import('./views/home/index.vue'),
        header: () => import('./components/header/header.vue'),
        footer: () => import('./components/footer/footer.vue')
      }
    },
    {
      path: '/labelplatform',
      name: 'labelplatform',
      components: {
        default: () => import('./views/labelplatform/index.vue'),
        header: () => import('./components/header/header.vue'),
        footer: () => import('./components/footer/footer.vue')
      }
    },
    {
      path: '/mychat',
      name: 'mychat',
      components: {
        default: () => import('./views/chat/mychat.vue'),
        header: () => import('./components/header/header.vue'),
        footer: () => import('./components/footer/footer.vue')
      }
    },
    {
      path: '/try',
      name: 'try',
      components: {
        default: () => import('./views/try/index.vue')
      }
    },
    {
      path: '/identify',
      name: 'identify',
      components: {
        default: () => import('./components/identify/index.vue')
      }
    }
  ]
})
export default router
